﻿<AzukiMapUI:TileSourceProperties
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:AzukiMapUI="clr-namespace:AzukiMapUI"
	mc:Ignorable="d"
	x:Class="AzukiMapUI.VirtualEarthProperties"
	Width="600" Height="480">

    <Grid x:Name="LayoutRoot" Background="#FFFFFFFF">
        <Grid.RowDefinitions>
            <RowDefinition Height="26"/>
            <RowDefinition Height="96"/>
            <RowDefinition Height="96"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="26"/>
            <RowDefinition Height="26"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <!-- labels -->
        <TextBlock Margin="8,0,8,0" Text="Layers" TextWrapping="Wrap" Grid.Row="0" VerticalAlignment="Center"/>
        <TextBlock Margin="8,8,0,0" TextWrapping="Wrap" Text="Tile Server Paths" Grid.Row="1"/>
        <TextBlock Margin="8,8,8,0" Text="Scales" TextWrapping="Wrap" Grid.Row="2"/>
        <TextBlock Margin="8,0,8,0" Text="Tile Width" TextWrapping="Wrap" Grid.Row="3" VerticalAlignment="Center"/>
        <TextBlock Margin="8,0,8,0" Text="Tile Height" TextWrapping="Wrap" Grid.Row="4" VerticalAlignment="Center"/>
        <TextBlock Margin="8,0,8,0" Text="Tile DPI" TextWrapping="Wrap" Grid.Row="5" VerticalAlignment="Center"/>
        <TextBlock Margin="8,0,8,0" Text="SRID" TextWrapping="Wrap" Grid.Row="6" VerticalAlignment="Center"/>

        <!-- input fields -->
        <ComboBox x:Name="CbLayers" SelectionChanged="CbLayers_SelectionChanged" Margin="8,0,8,0" Grid.Column="1" VerticalAlignment="Center" SelectedIndex="0">
            <TextBlock Text="Road"/>
            <TextBlock Text="Aerial"/>
            <TextBlock Text="Hybrid"/>
            <TextBlock Text="Trafic"/>
        </ComboBox>
        <TextBox x:Name="TbServerPaths" Margin="8,2,8,2" Text="" TextWrapping="Wrap" Grid.Column="2" Grid.Row="1" IsReadOnly="True" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" IsEnabled="False"/>
        <TextBox x:Name="TbScales" Margin="8,2,8,2" Text="" TextWrapping="Wrap" Grid.Column="2" Grid.Row="2" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" IsReadOnly="True" IsEnabled="False"/>
        <TextBox x:Name="TbTileWidth" Margin="8,2,8,2" Text="" TextWrapping="Wrap" Grid.Column="2" Grid.Row="3" HorizontalAlignment="Left" Width="48" IsReadOnly="True" IsEnabled="False"/>
        <TextBox x:Name="TbTileHeight" Margin="8,2,8,2" Text="" TextWrapping="Wrap" Grid.Column="2" Grid.Row="4" HorizontalAlignment="Left" Width="48" IsReadOnly="True" IsEnabled="False"/>
        <TextBox x:Name="TbTileDpi" Margin="8,2,8,2" Text="" TextWrapping="Wrap" Grid.Column="2" Grid.Row="5" HorizontalAlignment="Left" Width="48" IsReadOnly="True" IsEnabled="False"/>
        <TextBox x:Name="TbSrid" Margin="8,2,8,2" Text="" TextWrapping="Wrap" Grid.Column="2" Grid.Row="6" HorizontalAlignment="Left" Width="48" IsEnabled="False"/>

        <!-- warning icons -->
        <Image Height="16" x:Name="IconErrorServerPaths" HorizontalAlignment="Right" Margin="0,8,4,0" Visibility="Visible" VerticalAlignment="Top" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="1"/>
        <Image Height="16" x:Name="IconErrorScales" HorizontalAlignment="Right" Margin="0,8,4,0" Visibility="Visible" VerticalAlignment="Top" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="2"/>
        <Image Height="16" x:Name="IconErrorTileWidth" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="3"/>
        <Image Height="16" x:Name="IconErrorTileHeight" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="4"/>
        <Image Height="16" x:Name="IconErrorTileDpi" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="5"/>
        <Image Height="16" x:Name="IconErrorSrid" HorizontalAlignment="Right" Margin="0,0,4,0" Visibility="Visible" VerticalAlignment="Center" Width="16" Source="../icons/error.png" Stretch="Fill" Grid.Row="6"/>

    </Grid>
</AzukiMapUI:TileSourceProperties>